const initState = []



export default function channels (state = initState, { type, payload }) {
    switch(type) {
        case 'SET_CHANNELS':
            return [...state,...payload ]
        default:
            return state
    }
}